<?php
	$db=new db;
	$db->connect();
	
	if($_GET['ext']=='reset'){
		$db->query("update  anime set scan_auto=0  where scan_auto=1 ");
	}
	$db->query("select id,name,alias,url from anime where scan_auto=1  order by id desc limit 0,1 ");
	if($db->num_rows()>0){
	 $data2=$db->fetchOne();
	}
	
	$data1['title']="Xem Anime Tong hop";
	$data1['mota']="Xem Anime Tong Hop";
	$data1['keyword']="Xem Anime Tong hop";

	loadview('template/header2',$data1);
	loadview("anime/scan",$data2);
	loadview('template/footer2');
	exit();

?>